package com.ruoyi.process.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.process.mapper.WorkMoveplateMapper;
import com.ruoyi.process.domain.WorkMoveplate;
import com.ruoyi.process.service.IWorkMoveplateService;

/**
 * 移盘管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-12
 */
@Service
public class WorkMoveplateServiceImpl implements IWorkMoveplateService 
{
    @Autowired
    private WorkMoveplateMapper workMoveplateMapper;

    /**
     * 查询移盘管理
     * 
     * @param workMoveplateId 移盘管理ID
     * @return 移盘管理
     */
    @Override
    public WorkMoveplate selectWorkMoveplateById(Long workMoveplateId)
    {
        return workMoveplateMapper.selectWorkMoveplateById(workMoveplateId);
    }

    /**
     * 查询移盘管理列表
     * 
     * @param workMoveplate 移盘管理
     * @return 移盘管理
     */
    @Override
    public List<WorkMoveplate> selectWorkMoveplateList(WorkMoveplate workMoveplate)
    {
        return workMoveplateMapper.selectWorkMoveplateList(workMoveplate);
    }

    /**
     * 新增移盘管理
     * 
     * @param workMoveplate 移盘管理
     * @return 结果
     */
    @Override
    public int insertWorkMoveplate(WorkMoveplate workMoveplate)
    {
        workMoveplate.setCreateTime(DateUtils.getNowDate());
        return workMoveplateMapper.insertWorkMoveplate(workMoveplate);
    }

    /**
     * 修改移盘管理
     * 
     * @param workMoveplate 移盘管理
     * @return 结果
     */
    @Override
    public int updateWorkMoveplate(WorkMoveplate workMoveplate)
    {
        workMoveplate.setUpdateTime(DateUtils.getNowDate());
        return workMoveplateMapper.updateWorkMoveplate(workMoveplate);
    }

    /**
     * 批量删除移盘管理
     * 
     * @param workMoveplateIds 需要删除的移盘管理ID
     * @return 结果
     */
    @Override
    public int deleteWorkMoveplateByIds(Long[] workMoveplateIds)
    {
        return workMoveplateMapper.deleteWorkMoveplateByIds(workMoveplateIds);
    }

    /**
     * 删除移盘管理信息
     * 
     * @param workMoveplateId 移盘管理ID
     * @return 结果
     */
    @Override
    public int deleteWorkMoveplateById(Long workMoveplateId)
    {
        return workMoveplateMapper.deleteWorkMoveplateById(workMoveplateId);
    }
}
